﻿package pk;

public static void main(String[] args) {
       
        char []cbuf=new char[3];
        BufferedReader br=null; 
        try {
            br=new BufferedReader(new FileReader("2.txt"));
            System.out.println(br.readLine());//read by line
            System.out.println(br.readLine());
            br.read(cbuf);//read in buffer
            System.out.println(cbuf);
        } catch (IOException e) {
        
            e.printStackTrace();
        }finally{
            try {
                br.close();
            } catch (IOException e) {
           
                e.printStackTrace();
            }
        }   
